﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UniMana.Utils.Configs;
using UniMana.Utils.Helper;

namespace UniMana.Data
{
    public class DBMain
    {
        public DCMainDataContext m_DCReadOnly = new DCMainDataContext(ServerConfig.m_strConnectionString);
        public DCMainDataContext m_DCSave = new DCMainDataContext(ServerConfig.m_strConnectionString);
        public static bool TestConnectServer()
        {
            DCMainDataContext dc = new DCMainDataContext(UniMana.Utils.Configs.ServerConfig.m_strConnectionString);
            return dc.DatabaseExists();
        }
    }
}
